<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let goods = {
            name: '小米10 青春版',
            num: '100012816024',
            weight: '0.55kg',
            address: '中国大陆'
        }
        console.log(goods);

        goods.name = '小米10PLUS';
        console.log(goods);

        goods.color = '粉色';
        console.log(goods);


        document.write(`商品名称: ${goods.name} <br> 商品编号: ${goods.num} <br> 商品重量: ${goods.weight} <br> 商品产地: ${goods.address} <br> 商品颜色: ${goods.color}`);
    </script>
</body>

</html>